﻿using MediatR;
using Process.ErrorCode;
using System.Collections.Generic;

namespace Process.API.Application.Command.Action.ProductionMaterial
{
    public class AddProductionMaterialCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 生产工单物料清单集合（批量添加）
        /// </summary>
        public List<AddProductionMaterialItem> Items { get; set; } = new();
    }

    /// <summary>
    /// 生产工单物料清单项
    /// </summary>
    public class AddProductionMaterialItem
    {
        /// <summary>
        /// 生产工单ID
        /// </summary>
        public int ProductionOrdersId { get; set; }
        /// <summary>
        /// 物料清单编号
        /// </summary>
        public string MaterialCode { get; set; }
    }
}
